<template>
  <button @click="showDemo=!showDemo">切换显示/隐藏</button>
  <Demo v-if="showDemo"></Demo>
</template>

<script>
import { ref } from 'vue'
import Demo from './components/Demo'
  export default {
    name: 'App',
    setup(){
      let showDemo = ref(true)

      return{
        showDemo
      }
    },
    components:{Demo}
  }
</script>
